package hu.mapro.gwtui.gxt.client.columnmodel;

import com.sencha.gxt.widget.core.client.grid.ColumnModel;

abstract public class AbstractColumnModelProvider<T> implements ColumnModelProvider<T> {

	ColumnModel<T> columnModel;
	
	abstract protected ColumnModel<T> buildColumnModel();
	
	public ColumnModel<T> asColumnModel() {
		if (columnModel==null) {
			columnModel = buildColumnModel();
		}
		return columnModel;
	}

}